<template>
  <el-container>
    <el-aside width="200px">
      
      <div>logo</div>

      <el-menu
        default-active="/"
        class="el-menu-vertical-demo"
        router
        >
        <el-menu-item index="/">
          <i class="el-icon-user"></i>
          <span slot="title">主页</span>
        </el-menu-item>
        <el-menu-item index="/table">
          <i class="el-icon-user"></i>
          <span slot="title">功能1-table</span>
        </el-menu-item>
        <el-menu-item index="/tree">
          <i class="el-icon-setting"></i>
          <span slot="title">功能2-tree</span>
        </el-menu-item>
      </el-menu>
    </el-aside>
    <el-container>
      <el-header>Header</el-header>
      <el-main>

        <router-view />
      </el-main>
    </el-container>
  </el-container>
</template>

<style>
  .el-header, .el-footer {
    background-color: #B3C0D1;
    color: #333;
    text-align: center;
    line-height: 60px;
  }
  
  .el-aside {
    background-color: #D3DCE6;
    color: #333;
    text-align: center;
    line-height: 200px;
  }
  
  .el-main {
    background-color: #E9EEF3;
    color: #333;
    text-align: center;
    line-height: 160px;
  }
  
  body > .el-container {
    margin-bottom: 40px;
  }
</style>